package com.jingdianjichi.auth.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdianjichi.auth.infra.basic.entity.AuthPermission;
import com.jingdianjichi.auth.infra.basic.service.AuthPermissionService;
import com.jingdianjichi.auth.infra.basic.mapper.AuthPermissionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
* @author 20432
* @description 针对表【auth_permission(权限表)】的数据库操作Service实现
* @createDate 2025-10-19 15:11:22
*/
@Service
public class AuthPermissionServiceImpl extends ServiceImpl<AuthPermissionMapper, AuthPermission>
    implements AuthPermissionService{

    @Resource
    private AuthPermissionMapper authPermissionMapper;
    @Override
    public int insert(AuthPermission authPermission) {
        return authPermissionMapper.insert(authPermission);
    }

    @Override
    public int updateByCondition(AuthPermission authPermission) {
        return authPermissionMapper.updateByCondition(authPermission);
    }

    @Override
    public int delete(AuthPermission authPermission) {
        return authPermissionMapper.updateByCondition(authPermission);
    }

    @Override
    public List<AuthPermission> queryByIds(List<Long> permissionIdList) {
        return authPermissionMapper.queryByIds(permissionIdList);
    }
}




